e4e773021e392ce628a4c6fc84d607c9c7d5785b,CodenameOne/src/com/codename1/ui/URLImage.java,DownloadCompleted,actionPerformed,#ActionEvent#,192

Before Change


                        d = new byte[(int)FileSystemStorage.getInstance().getLength(fileSystemFile + IMAGE_SUFFIX)];
                        is = FileSystemStorage.getInstance().openInputStream(fileSystemFile + IMAGE_SUFFIX);
                    }
                    Util.readFully(is, d);
                    EncodedImage img = EncodedImage.create(d);
                    EncodedImage adapted;
                    if(adapter.isAsyncAdapter()) {

After Change


            if(adapter != null) {
                try {
                    EncodedImage img;
                    if (sourceImage == null) {
                        byte[] d;
                        InputStream is;
                        if(storageFile != null) {
                            d = new byte[Storage.getInstance().entrySize(storageFile + IMAGE_SUFFIX)];
                            is = Storage.getInstance().createInputStream(storageFile + IMAGE_SUFFIX);
                        } else {
                            d = new byte[(int)FileSystemStorage.getInstance().getLength(fileSystemFile + IMAGE_SUFFIX)];
                            is = FileSystemStorage.getInstance().openInputStream(fileSystemFile + IMAGE_SUFFIX);
                        }
                        Util.readFully(is, d);
                        img = EncodedImage.create(d);
                    } else {
                        img = EncodedImage.createFromImage(sourceImage, false);